package com.xiaobai.customer.exception;


public class TipException extends Exception {

    private final Integer code;

    public TipException(String message) {
        super(message);
        code = 500;
    }

    public TipException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }
}
